/*
 * PKL 51 GUNUNG KIDUL
 * Subseksie DATA ENTRY + CAPI
 */
package pkl51.database;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Hindarwan
 */
public class ShudownServer implements Runnable {

    @Override
    public void run() {
        Runtime rt = Runtime.getRuntime();
        Process process = null;
        try {
            process = rt.exec("mysql-5.0-shutdown.bat");
            Thread.currentThread().interrupt();
        } catch (IOException ex) {
            System.out.println("gagal shutdown server");
            Logger.getLogger(ShudownServer.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
